package com.arangodb.arangodemo.service;

import com.arangodb.arangodemo.arangoEntity.ArticleInfo;
import com.arangodb.arangodemo.reposity.ArticleInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleInfoService {
    @Autowired
    private ArticleInfoRepository articleInfoRepository;

    public void save(String id){
        ArticleInfo articleInfo = new ArticleInfo();
        articleInfo.setArticleId(id);
        articleInfo.setId(id);
        articleInfoRepository.save(articleInfo);
    }
}
